<?php
/**
 * 
 * @author Paolo Bertuzzo
 *
 */
namespace Catalog\Form\Element;

use Zend\Form\ElementInterface;
use Zend\Form\View\Helper\AbstractHelper;

/**
 */
class SubmitElement extends AbstractHelper
{

    /**
     *
     * @param ElementInterface $element            
     */
    public function render(ElementInterface $element)
    {
        return $this->getView()->render('catalog/form/element/submit', array(
            'productId' => $element->getAttribute('product_id'),
            'price' => $element->getAttribute('price'),
            'locale' => $element->getAttribute('locale'),
            'attributes' => $element->getAttribute('attributes')
        ));
    }
}

?>